<!--
 * @Author: wangshuguang
 * @Date: 2022-03-24 20:45:56
 * @LastEditTime: 2022-09-02 14:26:51
 * @LastEditors: wangshuguang
 * @Description: 充值服务协议
-->
<template>
  <div class="agreementPage">
    <!-- <img src="/static/img/kaihuxieyi.png" alt=""> -->
    <!-- 协议内容更新为动态协议链接 -->
    <iframe :src="iframeUrl" frameborder="0" height="100%" width="100%"></iframe>
  </div>
</template>

<script>
export default {
  computed: {
    iframeUrl(){
      // 从query中获取deptId
      const { flowQueryData: { deptId } } = this.$store.getters
      console.log('this.$route', this.$store.getters)
      return `/#/agreement?deptId=${deptId || '1123598813738675201'}&deptTitle=会员营销系统服务协议`
    }
  }
}
</script>
<style lang="less" scoped>
.agreementPage{
  padding: 20px;
  height: 85vh;
  img{
    width: 100%;
  }
}
</style>